home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2824 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.8 KB

  1. Path: noc.tor.hookup.net!news
  2. From: Mike Martonfi <mikem@abelcomputers.com>
  3. Newsgroups: comp.os.ms-windows.programmer.tools.mfc;,comp.os.ms-windows.programmer.win32;,comp.lang.c++
  4. Subject: LNK2005 error
  5. Date: Fri, 19 Jan 1996 16:45:16 -0500
  6. Organization: ABEL Computers
  7. Message-ID: <310010EC.17C8@abelcomputers.com>
  8. NNTP-Posting-Host: mikem.abelcomputers.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0b4 (WinNT; I)
  13. CC: joemas@microsoft.com
  14.  
  15. I just started using VC4.0 on a project that was built using 
  16. VC2.2. Upon linking, I get the following errors:
  17. ---------------------
  18. nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl 
  19. operator new(unsigned int)"(??2@YAPAXI@Z) already defined in 
  20. LIBCMTD.lib(new.obj)
  21. nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator 
  22. delete(void *)"(??3@YAXPAX@Z) already defined in 
  23. LIBCMTD.lib(dbgnew.obj)
  24. nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl 
  25. operator new(unsigned int,int,char const 
  26. *,int)"(??2@YAPAXIHPBDH@Z) already defined in 
  27. LIBCMTD.lib(dbgnew.obj)
  28. WinDebug/abel.exe : fatal error LNK1169: one or more multiply 
  29. defined symbols found
  30. ---------------------
  31.  
  32. All the documentation I have read on LNK2005 errors say that the 
  33. most probable cause is accidentally linking with both the 
  34. single-threaded and multithreaded libraries. I have checked my 
  35. run-time libraries for all of my objects and they all use "Debug 
  36. Multithreaded".  I only link in 2 libs:
  37. gui4.lib (which is a lib we created using VC4.0) and vfw32.lib. 
  38. I have checked the run-time libraries for all objects in 
  39. GUI4.lib and they all use "Debug Multithreaded" as well. 
  40.  
  41. Anybody know what's going on? I have already wasted too much 
  42. time on this problem. Any help would be more than greatly 
  43. appreciated.
  44.  
  45. Thanks.
  46.